.TH std::expected::error 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::expected::error \- std::expected::error

.SH Synopsis
   constexpr const E& error() const& noexcept;   \fB(1)\fP (since C++23)
   constexpr E& error() & noexcept;              \fB(2)\fP (since C++23)
   constexpr const E&& error() const&& noexcept; \fB(3)\fP (since C++23)
   constexpr E&& error() && noexcept;            \fB(4)\fP (since C++23)

   Accesses the unexpected value contained in *this.

   The behavior is undefined if this->has_value() is true.

.SH Parameters

   \fI(none)\fP

.SH Return value

   Reference to the unexpected value contained in *this.

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   operator->    accesses the expected value
   operator*     \fI(public member function)\fP
   value         returns the expected value
                 \fI(public member function)\fP
   operator bool checks whether the object contains an expected value
   has_value     \fI(public member function)\fP

.SH Category:
     * Todo no example
